<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <!-- import CSS -->
  <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
</head>
<body>
<div id="app">
  <el-page-header style="background-color: #0096dc;color: white;line-height: 60px"
          @back="goBack()" content="添加会员页面"></el-page-header>
  <el-card style="width: 600px;height: 700px;margin: 0 auto">
    <el-form label-width="80px">
      <el-form-item label="姓名"><el-input type="text"></el-input></el-form-item>
      <el-form-item label="性别"><template>
        <el-radio v-model="radio" label="1">男</el-radio>
        <el-radio v-model="radio" label="2">女</el-radio>
      </template></el-form-item>
      <el-form-item label="卡上余额"><el-input type="text"></el-input></el-form-item>
      <el-form-item label="添加日期"> <div class="block">
        <el-date-picker
                v-model="value1"
                type="date"
                placeholder="选择日期">
        </el-date-picker>
      </div></el-input></el-form-item>
      <el-form-item>
        <el-button type="success">添加</el-button>
      </el-form-item>
    </el-form>
  </el-card>

</div>
</body>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
 let v = new Vue({
    el: '#app',
    data: function() {
      return {
        value1: '',
        value: '',
        radio: '1',
        dialogImageUrl: '',
        dialogVisible: false
      }
    },
   methods:{
     goBack(){
       history.back();
     }, handleRemove(file, fileList) {
       console.log(file, fileList);
     },
     handlePictureCardPreview(file) {
       this.dialogImageUrl = file.url;
       this.dialogVisible = true;
     }

   }
  })
</script>
</html>